import Http from '../mpf/http/http.js';

module.exports = {
  /**
   * 首页
   */
  index: (config) => { return Http.get('/rest/view/index/data', config); },
  /**
   * 个人信息
   */
  mine: (config) => { return Http.get('/rest/houseListingInfoController/getInfo', config); },
  /**
   * 根据id获取信息
   */
  userInfo: (config) => { return Http.get('/rest/view/member/getMemberInfo', config); },
  /**
   * 初始化JIM配置
   */
  JIMinit: (config) => { return Http.get('/rest/member/getAuthPayload', config); },
  /**
   * JIM信息存储
   */
  JIMstorage: (config) => { return Http.post('/rest/memberIM/saveContent', config); },
  /**
   * JIM获取聊天记录
   */
  JIMmessage: (config) => { return Http.get('/rest/memberIM/getFriendRecording', config); },
  /**
   * 是否已读
   */
  isRead: (config) => { return Http.get('/rest/memberIM/recordingFlag', config); }
};